<?php
/* @var $this TrainerController */
/* @var $model Trainer */
$this->main_menu = MenuHelper::getArrayForMainMenu(false, false, true);
?>

<?php
$this->widget('bootstrap.widgets.TbTabs', array(
	'type'=>'tabs', // 'tabs' or 'pills'
	'tabs'=>array(
		array('label'=>'Alle Trainer', 'url'=>$this->createUrl('trainer/admin'), 'active'=>true),
        array('label'=>'NEU', 'url'=>$this->createUrl('trainer/create'), 'active'=>false),
//                array('label'=>'|', 'url'=>$this->createUrl('trainer/admin'), 'itemOptions'=>array('class'=>'disabled')),
        array('label'=>'Stammdaten', 'url'=>$this->createUrl('trainer/admin'), 'itemOptions'=>array('class'=>'disabled')),
//                array('label'=>'|', 'url'=>$this->createUrl('trainer/admin'), 'itemOptions'=>array('class'=>'disabled')),
	),
));
?>

<?php
$this->widget('bootstrap.widgets.TbExtendedGridView', array(
    'filter'=>$model,
    'fixedHeader' => false,
    'headerOffset' => 40, // 40px is the height of the main navigation at bootstrap
    'type'=>'striped bordered',
    'dataProvider' => $model->search(),
    'template' => '{items}{pager}', // 2nd way
//    'template' => "{items}",
	'columns'=>array(
		'last_name',
		'first_name',
//                'address',
//                'postcode',
//                'place',
                'email',
                'mobile',
                'info',
                'subjects',
            array (
                'class'=>'CButtonColumn',
                'template'=>'{update}{delete}',
				'buttons'=>array(
	            	'update'=>array(
	            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/update.png',
	            	),
	            	'delete'=>array(
	            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/delete.png',
	            	),
	            ),
            ),
	),
));
?>